package com.zl.gmadmin.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

@TableName(value = "blog_article")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class BlogArticle {

  @TableId(value = "article_id",type = IdType.AUTO)
  private Long id;
  private Long userId;
  private String articleTitle;
  private String articleContent;
  private Long articleViews;
  private Long articleCommentCount;
  private Long articleLikeCount;
  private String createBy;
  private String updateBy;
  @TableField(fill = FieldFill.INSERT)
  private java.time.LocalDateTime createTime;
  @TableField(fill = FieldFill.UPDATE)
  private java.time.LocalDateTime updateTime;
  private Boolean publish;

  private Long articleTypeId;

  @TableField(exist = false)
  private SysUser sysUser;

  @TableField(exist = false)
  private List<BlogLabel> blogLabels;

  @TableField(exist = false)
  private BlogArticleType type;

  private String articleSource;
  private String articleSourceAddress;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }


  public String getArticleTitle() {
    return articleTitle;
  }

  public void setArticleTitle(String articleTitle) {
    this.articleTitle = articleTitle;
  }


  public String getArticleContent() {
    return articleContent;
  }

  public void setArticleContent(String articleContent) {
    this.articleContent = articleContent;
  }


  public Long getArticleViews() {
    return articleViews;
  }

  public void setArticleViews(Long articleViews) {
    this.articleViews = articleViews;
  }


  public Long getArticleCommentCount() {
    return articleCommentCount;
  }

  public void setArticleCommentCount(Long articleCommentCount) {
    this.articleCommentCount = articleCommentCount;
  }


  public Long getArticleLikeCount() {
    return articleLikeCount;
  }

  public void setArticleLikeCount(Long articleLikeCount) {
    this.articleLikeCount = articleLikeCount;
  }


  public String getCreateBy() {
    return createBy;
  }

  public void setCreateBy(String createBy) {
    this.createBy = createBy;
  }


  public String getUpdateBy() {
    return updateBy;
  }

  public void setUpdateBy(String updateBy) {
    this.updateBy = updateBy;
  }


  public java.time.LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(java.time.LocalDateTime createTime) {
    this.createTime = createTime;
  }


  public java.time.LocalDateTime getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(java.time.LocalDateTime updateTime) {
    this.updateTime = updateTime;
  }


  public Boolean getPublish() {
    return publish;
  }

  public void setPublish(Boolean publish) {
    this.publish = publish;
  }


  public SysUser getSysUser() {
    return sysUser;
  }

  public void setSysUser(SysUser sysUser) {
    this.sysUser = sysUser;
  }

  public List<BlogLabel> getBlogLabels() {
    return blogLabels;
  }

  public void setBlogLabels(List<BlogLabel> blogLabels) {
    this.blogLabels = blogLabels;
  }

  public BlogArticleType getType() {
    return type;
  }

  public void setType(BlogArticleType type) {
    this.type = type;
  }

  public Long getArticleTypeId() {
    return articleTypeId;
  }

  public void setArticleTypeId(Long articleTypeId) {
    this.articleTypeId = articleTypeId;
  }

  public String getArticleSource() {
    return articleSource;
  }

  public void setArticleSource(String articleSource) {
    this.articleSource = articleSource;
  }

  public String getArticleSourceAddress() {
    return articleSourceAddress;
  }

  public void setArticleSourceAddress(String articleSourceAddress) {
    this.articleSourceAddress = articleSourceAddress;
  }

  public BlogArticle() {
  }
}
